<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>Simple Webb App Blank. Insert title here</title>
</head>


<body>
	<jsp:useBean id="userData" class="com.gl.blank.simplewebapp.UserData"
		scope="session"></jsp:useBean>
	<form>
		<h4>Hello World servlet example.</h4>
		<p>Type something and click Submit button.
		<p />

		<input type="text" name="userinput" size="25"> <input
			type="submit" value="Submit">

		<%
		    userData.setUserInput( request.getParameter( "userinput" ) );
		%>

		<c:if test="${sessionScope.userData.userInput != null}">
			<p>
				Your input:
				<jsp:getProperty property="userInput" name="userData" />
				Server time:
				<jsp:getProperty property="serverTime" name="userData" />
			<p />
		</c:if>

		<p />
		<p>
			After click you will see the response of the HelloWorldServlet <a
				href="servlet-answer">Run servlet</a>
		<p />
	</form>
</body>
</html>